project(MsgHandlerObj LANGUAGES CXX)

file(GLOB SRCS "*.cpp")

foreach(cppfile IN LISTS SRCS)
	message(STATUS "add ${cppfile} to ${PROJECT_NAME}...")
endforeach()

add_library(${PROJECT_NAME} OBJECT ${SRCS})

target_include_directories(${PROJECT_NAME} PUBLIC
	   ${CMAKE_CURRENT_SOURCE_DIR}/
       ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}_autogen/include
       ${Session_SOURCE_DIR}/
       ${jsoncpp_SOURCE_DIR}/include
)

target_link_libraries(${PROJECT_NAME}
    PUBLIC
        SessionObj
        Qt::Core
        Qt::Network
        Qt::Widgets
        ws2_32
        jsoncpp_lib
)